package com.gemframework.modules.extent;

import com.gemframework.model.common.BaseResultData;
import com.gemframework.service.ExplainService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/Explain")
public class ExplainAPI {

    @Resource
    private ExplainService  explainService;

    //根据id查询说明表信息
    @GetMapping("/selExplainById")
    public BaseResultData selExplainById(Integer id){
        return BaseResultData.SUCCESS(explainService.getById(id));
    }
}
